﻿using System;
using System.Buffers;
using System.Linq;

using Microsoft.Extensions.DependencyInjection;

using Xc.DataAccess.Core.Extensions;
using Xc.DataAccess.HyperTerminalCore.Services;
using Xc.DataAccess.PcpChannels;
using Xc.DataAccess.Protocoals.PcpChannels.Services;
using Xc.Logics.HyperTerminalCore.Udp.Extensions;
using Xc.Logics.HyperTerminalCore.Udp.Views;

namespace Xc.Logics.HyperTerminalCore.Udp.Models
{
    public class DataHandler
    {
        private UdpClientOnlineInfo udpClientOnlineInfo;
        private TerminalView terminalView;
        public PcpUpgradeService<UdpChannel> PcpUpgradeService { get; private set; }
        public DataHandler(UdpClientOnlineInfo udpClientOnlineInfo, TerminalView terminalView)
        {
            this.udpClientOnlineInfo = udpClientOnlineInfo;
            this.terminalView = terminalView;
            udpClientOnlineInfo.SetPcpService();
            PcpUpgradeService = udpClientOnlineInfo.GetPcpService();
        }

    }
}
